home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: spitting a window
- Sent: 3/28/96 9:04 AM
- Received: 3/28/96 9:21 AM
- From: lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Anyone, this could be documented somewhere in which case just point me there.
- >I'm trying to split a window as in MPW. So I thought I'd take an FW_CFrame
- >and give it two FW_CFrames as subframes. Somehow this seems wrong because
- >then I appear to have one OD frame for both sub FW_CFrames. So I thought I'd
- >make the two two subframes FW_CViews...that seems wrong because they do not
- >have a FW_CView context for the scroller.
- >
- >I cannot figure out how to get another OD frame to attach to a new
- >FW_CFrame...
- >
- >Somehow, I think I am just not getting how all this is supposed to fit
- >together. Can anyone point me in the right direction.
- >
- >Gerry
-
- Splitting a window in not yet covered in ODF. The way to do it is to
- apply the OpenDoc recipe directly. Lets say you want to split your frame
- (lets call it CMyFrame). The easiest way is to use a special frame (lets
- call it a CSplitFrame) with a special presentation (CSplitPresentation).
- This frame has to be an embedding frame (subclass of FW_CEmbeddingFrame).
- Inside this frame you should embed two (or more) of your CMyFrame using
- CSplitPresentation::Embed passing the presentation of CMyFrame
- (CMyPresentation) and your part (CMyPart::GetODPart).
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-
-